import requests

url = "http://192.168.10.131:1234/area"

kw = {
    "method": "xx",
    "url": "xx",
    "params": None,
    "data": None,
    "json": None,
    "files": None,
    "headers": None
}

kw1 = {
    "method": "get",
    "url": url + "/listarea",
    "params": None,
    "data": None,
    "json": None,
    "files": None,
    "headers": None
}

# .request() 调用更底层的函数
response = requests.request(**kw1)
print("状态码: ", response.status_code)
print("响应结果:", response.json())
